import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

//  大底入库单号查询
export const BottomWarehouseEntryNumber = (parms:any) => {
    return service.post<any,any>(`/pcSlipDetailSole/getSoleCheck`,parms)
}

// 入库明细查询
export const InventoryDetailsQuery = (reqNo:string) => {
    return service.post<any,any>(`/pcSlipDetailSole/getSoleCheckDetail?slipNo=${reqNo}`)
}

// 打勾检核
export const CheckWithCheckmark = (choose:number,parms:any) => {
    return LoginWork.post<any,any>(`/pcSlipDetailSole/optionSoleCheck?check=${choose}`,parms)
}

// 备注确认
export const RemarksConfirmation = (remark:string,parms:any) => {
    return LoginWork.post<any,any>(`/pcSlipDetailSole/setRemarkSole?remark=${remark}`,parms)
}

// 保存
export const preserve = (parms:any) => {
    return LoginWork.post<any,any>(`/pcSlipDetailSole/saveSoleCheck`,parms)
}

export const ChargingUnitPrice = (parm:any) => {
    return LoginWork.post<any,any>(`/pcSlipDetailSole/setUnitPrice`,parm)
}

export const detil = () => {
    return LoginWork.get<any,any>(`/pcSlipDetailSole/refreshSoleCheck`)
}

// 删除入库单
export const deleteSoleCheck = (slipNo:any) => {
    return LoginWork.get<any,any>(`/pcSlipDetailSole/deleteSoleCheck?slipNos=${slipNo}`) 
}